import api from '../utils/apiUtils';

export function addTos (params) {
    return api.post (`/shop/clause/create`, params);
}

// 列表
export function getTosAll () {
    return api.get (`/shop/clause/allClause`);
}

// 详情
export function getTosDetail (id) {
    return api.get (`/shop/clause/${id}`);
}

// 删除
export function delTos (params) {
    return api.delete(`/shop/clause`,params);
}


export function editTos (id,params) {
    return api.put(`/shop/clause/${id}`,params);
}